<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>D站</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <!--<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>-->
    <!--<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>-->
    <style>
        .footer{
            height: 50px;
            background-color: dimgrey;
            color: whitesmoke;
        }
    </style>
</head>
<body>
<div class="container">
    <nav class="navbar navbar-default">
       <div class="navbar-header">
           <a class="navbar-brand" href="javascripts:void(0)">D站</a>
       </div>
        <div class="navbar-collapse">
            <ul class="list-unstyled list-inline nav navbar-nav" >
                <li><a href="javascripts:void(0)">首页</a></li>
                <li><a id="dongman" href="javascripts:void(0)">动漫</a></li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascripts:void(0)" >其他频道<span class="caret"></span></a>
                    <ul class="dropdown-menu" >
                        <li><a href="javascripts:void(0)">爱情</a> </li>
                        <li><a href="javascripts:void(0)">科幻</a> </li>
                        <li><a href="javascripts:void(0)">悬疑</a> </li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <input value="Search">
                <button type="button">搜索</button>
            </form>
            <ul class="list-instyled list-inline navbar-right nav navbar-nav ">
                <li><a href="javascripts:void(0)">注册</a></li>
                <li class="dropdown">
                    <a href="javascripts:void(0)">个人中心<span class="caret"></span></a>
                    <ul class="dropdown-menu" >
                        <li><a href="javascripts:void(0)">皮肤</a> </li>
                        <li><a href="javascripts:void(0)">信息</a> </li>
                        <li><a href="javascripts:void(0)">设置</a> </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <div class="jumbotron" id="tihuan">
        <div class="container">
            <span><h1>Hello,workd!</h1></span>
            <span><h3>...</h3></span>
            <button class="btn btn-primary btn-lg">Learn more</button>
        </div>
    </div>
    <div>
        <div class="col-md-4">
            <ul class="list-group">
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
                <li class="list-group-item">Cras justo odio<span class="badge">14</span></li>
            </ul>
        </div>
        <div class="col-md-8">
            <div class="col-md-6" >
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading" >Panel heading</div>
                    <div class="panel-body">...</div>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <footer class="footer navbar-fixed-bottom">
            <span>Place sticky footer content here</span>
        </footer>
    </div>
</div>
    <script>
//        $("#dongman").click(function () {
//            $('#dongman').html("<h1>点击成功</h1>")
//        });
        $("#dongman").click(function () {
            $('#tihuan').html("<div id=\"myCarousel\" class=\"carousel slide\">\n" +
                "            <!-- 轮播（Carousel）指标 -->\n" +
                "            <ol class=\"carousel-indicators\">\n" +
                "                <li data-target=\"#myCarousel\" data-slide-to=\"0\" class=\"active\"></li>\n" +
                "                <li data-target=\"#myCarousel\" data-slide-to=\"1\"></li>\n" +
                "            </ol>\n" +
                "            <!-- 轮播（Carousel）项目 -->\n" +
                "            <div class=\"carousel-inner\">\n" +
                "                <div class=\"item active\">\n" +
                "                    <img src=\"http://img31.mtime.cn/pi/2016/03/28/091015.32785855_1000X1000.jpg\" alt=\"First slide\">\n" +
                "                </div>\n" +
                "                <div class=\"item\">\n" +
                "                    <img src=\"http://img31.mtime.cn/pi/2016/04/17/101518.67979592_1000X1000.jpg\" alt=\"Second slide\">\n" +
                "                </div>\n" +
                "            </div>\n" +
                "            <!-- 轮播（Carousel）导航 -->\n" +
                "            <a class=\"left carousel-control\" href=\"#myCarousel\" role=\"button\" data-slide=\"prev\">\n" +
                "                <span class=\"glyphicon glyphicon-chevron-left\" aria-hidden=\"true\"></span>\n" +
                "                <span class=\"sr-only\">Previous</span>\n" +
                "            </a>\n" +
                "            <a class=\"right carousel-control\" href=\"#myCarousel\" role=\"button\" data-slide=\"next\">\n" +
                "                <span class=\"glyphicon glyphicon-chevron-right\" aria-hidden=\"true\"></span>\n" +
                "                <span class=\"sr-only\">Next</span>\n" +
                "            </a>\n" +
                "        </div>");
            $()
        });
    </script>
</body>
</html>
<!--style="background-color: steelblue;border: 1px"-->